From: Florian Müllner Date: Sat, 9 Feb 2019 03:56:58 +0000 (+0100) Subject: lookingGlass: Include St in default imports instead of Gtk X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~888^2^2~131 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d17d99bd6d4eac8a899bdecb09f91e755097afb9;p=gnome-shell.git lookingGlass: Include St in default imports instead of Gtk Until commit 467b7c1bcacebdc, the import used to leak into the eval() environment, but not anymore. Add it back (and remove Gtk, as it's not *that* useful). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/398 --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index e839ad75e..920a24347 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -17,7 +17,7 @@ const JsParse = imports.misc.jsParse; const CHEVRON = '>>> '; /* Imports...feel free to add here as needed */ -var commandHeader = 'const { Clutter, Gio, GLib, GObject, Gtk, Meta, Shell } = imports.gi; ' + +var commandHeader = 'const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; ' + 'const Main = imports.ui.main; ' + 'const Mainloop = imports.mainloop; ' + 'const Tweener = imports.ui.tweener; ' +